package com.nth.rooster.announcement.controllers;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.nth.rooster.announcement.beans.NotificationBean;
import com.nth.rooster.announcement.services.AnnouncementSerivceI;

@Controller
@RequestMapping("/Announcements")
public class Announcements {
	
	static Logger LOGGER = Logger.getLogger(Announcements.class);
	
	private AnnouncementSerivceI announcementSerivceI;
	
	@RequestMapping(value = "/createNotification", method = RequestMethod.POST)
	@ResponseBody
	public void createNotification(@RequestBody NotificationBean notificationBean) {
		LOGGER.debug("Entered::Announcement::Announcements::createNotification(NotificationBean notificationBean)");
		
		LOGGER.debug("Exited::Announcement::Announcements::createNotification(NotificationBean notificationBean)");
	}
	
	
	@RequestMapping(value = "/getNotification", method = RequestMethod.POST)
	@ResponseBody
	public void getNotification(@RequestParam Long NotificationID) {
		LOGGER.debug("Entered::Announcement::Announcements::getNotification(Long NotificationID)" + NotificationID);
		
		LOGGER.debug("Exited::Announcement::Announcements::getNotification(Long NotificationID)" + NotificationID);
	}
	
	
	@RequestMapping(value = "/getNotificationList", method = RequestMethod.POST)
	@ResponseBody
	public void getNotificationList(@RequestParam Long userID) {
		LOGGER.debug("Entered::Announcement::Announcements::getNotificationList(Long userID)" + userID);
		
		LOGGER.debug("Exited::Announcement::Announcements::getNotificationList(Long userID)" + userID);
	}
	
	public AnnouncementSerivceI getAnnouncementSerivceI() {
		return announcementSerivceI;
	}


	public void setAnnouncementSerivceI(AnnouncementSerivceI announcementSerivceI) {
		this.announcementSerivceI = announcementSerivceI;
	}


}
